package routers

import (
	"chuanyou4/controllers"

	beego "github.com/beego/beego/v2/server/web"
)

func init() {
	beego.Router("/", &controllers.MainController{})
	beego.Router("/login", &controllers.MainController{}, "*:Login")
	beego.Router("/chongzhi", &controllers.MainController{}, "*:Chongzhi")
	beego.Router("/chaxun", &controllers.MainController{}, "*:Chaxun")

	beego.Router("/yanzhenglogin", &controllers.MainController{}, "*:Yanzhenglogin")

	//注册
	beego.Router("/register", &controllers.MainController{}, "*:Register")
	//处理用户注册
	beego.Router("/doregister", &controllers.MainController{}, "*:Doregister")
}
